package com.monkey.generator.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TStatUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    private String group;

    public TStatUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setGroupBy(String group) {
        this.group = group;
    }

    public String getGroupBy() {
        return group;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTotalIsNull() {
            addCriterion("total is null");
            return (Criteria) this;
        }

        public Criteria andTotalIsNotNull() {
            addCriterion("total is not null");
            return (Criteria) this;
        }

        public Criteria andTotalEqualTo(Integer value) {
            addCriterion("total =", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotEqualTo(Integer value) {
            addCriterion("total <>", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThan(Integer value) {
            addCriterion("total >", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThanOrEqualTo(Integer value) {
            addCriterion("total >=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThan(Integer value) {
            addCriterion("total <", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThanOrEqualTo(Integer value) {
            addCriterion("total <=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalIn(List<Integer> values) {
            addCriterion("total in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotIn(List<Integer> values) {
            addCriterion("total not in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalBetween(Integer value1, Integer value2) {
            addCriterion("total between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotBetween(Integer value1, Integer value2) {
            addCriterion("total not between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andNewnumIsNull() {
            addCriterion("newNum is null");
            return (Criteria) this;
        }

        public Criteria andNewnumIsNotNull() {
            addCriterion("newNum is not null");
            return (Criteria) this;
        }

        public Criteria andNewnumEqualTo(Integer value) {
            addCriterion("newNum =", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumNotEqualTo(Integer value) {
            addCriterion("newNum <>", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumGreaterThan(Integer value) {
            addCriterion("newNum >", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("newNum >=", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumLessThan(Integer value) {
            addCriterion("newNum <", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumLessThanOrEqualTo(Integer value) {
            addCriterion("newNum <=", value, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumIn(List<Integer> values) {
            addCriterion("newNum in", values, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumNotIn(List<Integer> values) {
            addCriterion("newNum not in", values, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumBetween(Integer value1, Integer value2) {
            addCriterion("newNum between", value1, value2, "newnum");
            return (Criteria) this;
        }

        public Criteria andNewnumNotBetween(Integer value1, Integer value2) {
            addCriterion("newNum not between", value1, value2, "newnum");
            return (Criteria) this;
        }

        public Criteria andLivenumIsNull() {
            addCriterion("liveNum is null");
            return (Criteria) this;
        }

        public Criteria andLivenumIsNotNull() {
            addCriterion("liveNum is not null");
            return (Criteria) this;
        }

        public Criteria andLivenumEqualTo(Integer value) {
            addCriterion("liveNum =", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumNotEqualTo(Integer value) {
            addCriterion("liveNum <>", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumGreaterThan(Integer value) {
            addCriterion("liveNum >", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("liveNum >=", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumLessThan(Integer value) {
            addCriterion("liveNum <", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumLessThanOrEqualTo(Integer value) {
            addCriterion("liveNum <=", value, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumIn(List<Integer> values) {
            addCriterion("liveNum in", values, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumNotIn(List<Integer> values) {
            addCriterion("liveNum not in", values, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumBetween(Integer value1, Integer value2) {
            addCriterion("liveNum between", value1, value2, "livenum");
            return (Criteria) this;
        }

        public Criteria andLivenumNotBetween(Integer value1, Integer value2) {
            addCriterion("liveNum not between", value1, value2, "livenum");
            return (Criteria) this;
        }

        public Criteria andChargenumIsNull() {
            addCriterion("chargeNum is null");
            return (Criteria) this;
        }

        public Criteria andChargenumIsNotNull() {
            addCriterion("chargeNum is not null");
            return (Criteria) this;
        }

        public Criteria andChargenumEqualTo(Integer value) {
            addCriterion("chargeNum =", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumNotEqualTo(Integer value) {
            addCriterion("chargeNum <>", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumGreaterThan(Integer value) {
            addCriterion("chargeNum >", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chargeNum >=", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumLessThan(Integer value) {
            addCriterion("chargeNum <", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumLessThanOrEqualTo(Integer value) {
            addCriterion("chargeNum <=", value, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumIn(List<Integer> values) {
            addCriterion("chargeNum in", values, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumNotIn(List<Integer> values) {
            addCriterion("chargeNum not in", values, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumBetween(Integer value1, Integer value2) {
            addCriterion("chargeNum between", value1, value2, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargenumNotBetween(Integer value1, Integer value2) {
            addCriterion("chargeNum not between", value1, value2, "chargenum");
            return (Criteria) this;
        }

        public Criteria andChargetotalIsNull() {
            addCriterion("chargeTotal is null");
            return (Criteria) this;
        }

        public Criteria andChargetotalIsNotNull() {
            addCriterion("chargeTotal is not null");
            return (Criteria) this;
        }

        public Criteria andChargetotalEqualTo(BigDecimal value) {
            addCriterion("chargeTotal =", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalNotEqualTo(BigDecimal value) {
            addCriterion("chargeTotal <>", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalGreaterThan(BigDecimal value) {
            addCriterion("chargeTotal >", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("chargeTotal >=", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalLessThan(BigDecimal value) {
            addCriterion("chargeTotal <", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("chargeTotal <=", value, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalIn(List<BigDecimal> values) {
            addCriterion("chargeTotal in", values, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalNotIn(List<BigDecimal> values) {
            addCriterion("chargeTotal not in", values, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("chargeTotal between", value1, value2, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andChargetotalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("chargeTotal not between", value1, value2, "chargetotal");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(BigDecimal value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(BigDecimal value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(BigDecimal value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(BigDecimal value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<BigDecimal> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<BigDecimal> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andKeep1IsNull() {
            addCriterion("keep1 is null");
            return (Criteria) this;
        }

        public Criteria andKeep1IsNotNull() {
            addCriterion("keep1 is not null");
            return (Criteria) this;
        }

        public Criteria andKeep1EqualTo(Integer value) {
            addCriterion("keep1 =", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1NotEqualTo(Integer value) {
            addCriterion("keep1 <>", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1GreaterThan(Integer value) {
            addCriterion("keep1 >", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1GreaterThanOrEqualTo(Integer value) {
            addCriterion("keep1 >=", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1LessThan(Integer value) {
            addCriterion("keep1 <", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1LessThanOrEqualTo(Integer value) {
            addCriterion("keep1 <=", value, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1In(List<Integer> values) {
            addCriterion("keep1 in", values, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1NotIn(List<Integer> values) {
            addCriterion("keep1 not in", values, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1Between(Integer value1, Integer value2) {
            addCriterion("keep1 between", value1, value2, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep1NotBetween(Integer value1, Integer value2) {
            addCriterion("keep1 not between", value1, value2, "keep1");
            return (Criteria) this;
        }

        public Criteria andKeep2IsNull() {
            addCriterion("keep2 is null");
            return (Criteria) this;
        }

        public Criteria andKeep2IsNotNull() {
            addCriterion("keep2 is not null");
            return (Criteria) this;
        }

        public Criteria andKeep2EqualTo(Integer value) {
            addCriterion("keep2 =", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2NotEqualTo(Integer value) {
            addCriterion("keep2 <>", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2GreaterThan(Integer value) {
            addCriterion("keep2 >", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2GreaterThanOrEqualTo(Integer value) {
            addCriterion("keep2 >=", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2LessThan(Integer value) {
            addCriterion("keep2 <", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2LessThanOrEqualTo(Integer value) {
            addCriterion("keep2 <=", value, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2In(List<Integer> values) {
            addCriterion("keep2 in", values, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2NotIn(List<Integer> values) {
            addCriterion("keep2 not in", values, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2Between(Integer value1, Integer value2) {
            addCriterion("keep2 between", value1, value2, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep2NotBetween(Integer value1, Integer value2) {
            addCriterion("keep2 not between", value1, value2, "keep2");
            return (Criteria) this;
        }

        public Criteria andKeep3IsNull() {
            addCriterion("keep3 is null");
            return (Criteria) this;
        }

        public Criteria andKeep3IsNotNull() {
            addCriterion("keep3 is not null");
            return (Criteria) this;
        }

        public Criteria andKeep3EqualTo(Integer value) {
            addCriterion("keep3 =", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3NotEqualTo(Integer value) {
            addCriterion("keep3 <>", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3GreaterThan(Integer value) {
            addCriterion("keep3 >", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3GreaterThanOrEqualTo(Integer value) {
            addCriterion("keep3 >=", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3LessThan(Integer value) {
            addCriterion("keep3 <", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3LessThanOrEqualTo(Integer value) {
            addCriterion("keep3 <=", value, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3In(List<Integer> values) {
            addCriterion("keep3 in", values, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3NotIn(List<Integer> values) {
            addCriterion("keep3 not in", values, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3Between(Integer value1, Integer value2) {
            addCriterion("keep3 between", value1, value2, "keep3");
            return (Criteria) this;
        }

        public Criteria andKeep3NotBetween(Integer value1, Integer value2) {
            addCriterion("keep3 not between", value1, value2, "keep3");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}